package repository

import (
	"context"

	"Data-API-MCP/backend/internal/domain/entity"
)

// DBConnection 数据库连接接口
type DBConnection interface {
	// Execute 执行SQL查询
	Execute(ctx context.Context, query string, args ...interface{}) (interface{}, error)
	// Close 关闭连接
	Close() error
	// Ping 测试连接
	Ping(ctx context.Context) error
	// GetConnectionInfo 获取连接信息
	GetConnectionInfo() *entity.Connection
}
